<template>
  <!-- tooltip的提示自定义 -->
  <div class="flex align-center">
    <!-- 自定义内容插槽 -->
    <slot></slot>
    <lay-tooltip :content="msg" position="right" v-if="msg">
      <lay-icon type="layui-icon-question" color="#FFB800" class="margin-left cursor-pointer"></lay-icon>
    </lay-tooltip>
  </div>
</template>

<script setup>
const props = defineProps({
  msg: {
    type: String,
    default: '',
  },
});
</script>

<style></style>
